package cn.com.victorysoft.ylgl.service.commons.web;


import lombok.Data;
import org.springframework.util.Assert;

import java.io.Serializable;
import java.util.*;

/***
 * @author gechaoqing
 * the login user
 */
@Data
public final class User implements Serializable {
    private static final long serialVersionUID = 410L;
    private String id;
    private String chsName;
    private String mobile;
    private String tel;
    private String email;
    private String sex;
    private String name;
    private String password;
    private long loginTime;
    private String loginIP;
    private Map<String, Object> extdata;
    private String encodePassword;
    public User(String username, String password) {
        setName(username);
        Assert.notNull(password,"password should not be null!");
        setPassword(password.toLowerCase());
    }


}
